package com.springboot.merlin;

import com.springboot.merlin.config.PropertiesListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author Merlin
 * @Title: HelloWordApplication
 * @ProjectName springboot-learning
 * @Description: SpringBoot 配置详解
 * @date 2018/8/2815:07
 */
@SpringBootApplication
public class PropertiesApplication {
    public static void main(String[] args) {
        //SpringApplication.run(PropertiesApplication.class, args);
        SpringApplication application = new SpringApplication(PropertiesApplication.class);
        // 第四种方式：注册监听器
        application.addListeners(new PropertiesListener("test.properties")); application.run(args);


    }
}
